package com.engr.lyx.blog.client.entity;

import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @program: blog
 * @desc: 菜单栏
 * @author: lyx
 * @date: 2019-03-27 17:42
 **/
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Accessors(chain = true)
@Builder
@Entity
public class BlogMenu implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 远程地址
     */
    private String url;

    /**
     * 对应权限
     */
    private String authority;

    /**
     * 是否为父节点
     */
    private Integer parentId;

    /**
     * 级别
     */
    private Integer level;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;
}
